#include "PrecompiledHeader.h"
#include "DepthOfFieldPPFX.h"

/*--------------------------------------------------------------------------*/

DepthOfFieldPPFX::DepthOfFieldPPFX() :
	IPostprocess(g_Material->GetMaterial("mat_depthoffield_ppfx"))
{
	this->m_bias = 0.6f;
	this->m_blurclamp = 3.0f;
}

/*--------------------------------------------------------------------------*/

DepthOfFieldPPFX::~DepthOfFieldPPFX()
{

}

/*--------------------------------------------------------------------------*/

void DepthOfFieldPPFX::UploadParameters()
{
	glm::vec4 v = glm::vec4(this->m_bias, this->m_blurclamp, 0.0f, 0.0f);
	ROpenGL::SetUniformBufferValue(g_Renderer->GetUniformBuffer(EUbo::Postprocess), EUboPostprocess::Var_0, &v);
}

/*--------------------------------------------------------------------------*/
